import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
// 复制文本插件
import VueClipboard from 'vue-clipboard2'
import './permission' // permission
// 重写  uni.setStorageSync 支持超时设置
import {uniStorageTimeout} from "./utils/storageTime"
uniStorageTimeout()

Vue.use(plugins)
Vue.use(VueClipboard)
Vue.config.productionTip = false
Vue.prototype.$store = store

// #ifdef H5
// if (process.env.NODE_ENV === 'development') {
//   const vconsole = require('vconsole')
//   Vue.prototype.$vconsole = new vconsole() // 使用vconsole
// }
if (process.env.NODE_ENV === 'production') {

}
// #endif

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
